<?php
/**
 * Created by PhpStorm.
 * User: 魏爷
 * Date: 2016/4/21
 * Time: 15:15
 */

namespace Home\Controller;

class AccountManageController extends BaseController
{
    /**
     * 线下借阅
     **/
    public function offlineReading()
    {
        $this->display('AccountManage/offlineReading');
    }
    /**
     * 阅读历程
     **/
    public function readingCourse()
    {
        $u_id=getUserId();
        $getBorrowInfoById=D('Borrow')->getBorrowAllInfo($u_id);
        $libraryInfo=D('Library')->libraryInfo();
        $bookShowInfo=D('BookManage')->getAllBookInfo();
        $getBookBuyInfo=D('BuyBook')->getBookBuyInfo($u_id);
        $this->assign('_getBookBuyInfo', $getBookBuyInfo);
        $this->assign('_libraryInfo', $libraryInfo);
        $this->assign('_getBorrowInfoById', $getBorrowInfoById);
        $this->assign('_bookShowInfo', $bookShowInfo);
        $this->display('AccountManage/readingCourse');
    }
}
